package com.liumuxian.video.pojo;

import lombok.Data;
import org.hibernate.annotations.Proxy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//模块表
@Data
@Entity
@Table(name = "tb_templateset")
@Proxy(lazy = false)
public class Templateset implements Serializable{
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "pid",length = 20)
    private String pid;
    @Column(name = "name" ,length = 20)
    private String name;
    @Column(name = "type" ,length = 1)
    private String type;//
    @Column(name = "visits" ,length = 20)
    private Integer visits;//浏览量
    @Column(name = "istop" ,length = 1)
    private String istop;//是否置顶
    @Column(name = "state" ,length = 1)
    private Integer state;//状态
    @Column(name = "weight" ,length = 1)
    private int weight;//排序
    @Column(name = "creatdata")
    private Date creatdata;//创建时间
    @Column(name = "updatedate")
    private Date updatedate;//修改时间
}
